package com.itheima.service.mongo;

import com.itheima.domain.mongo.Voice;

import java.util.List;

public interface PeachBlossomService {
    /**
     * 保存语音
     */
    void saveVoice(Voice voice);

    /**
     * 查询全部语音个数
     */
    List<Voice> findAllVoice();

    /**
     * 根据Pid查询语音
     */
    Voice findVoiceByPid(long pid);

    /**
     * 删除语音
     */
    void deleteVoiceByPid(long pid);

    /**
     * 根据userId查询语音
     */
//    List<Voice> findVoiceByUserId(long userId);


}
